export const tableComponentConfig = {
  removeButton: () =>
    import('@/views/purchase-order/components/tableComp/removeButton.vue'),
  orderNumberShow: () =>
    import('@/views/purchase-order/components/tableComp/orderNumberShow.vue'),
};

export const tableRenderConfig = {
  index: {
    title: '序号',
    dataIndex: 'index',
    slotName: 'index',
    width: 150,
  },

  secretLevel: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    slotName: 'secretLevel',
    width: 150,
  },
  status: { title: '状态', dataIndex: 'statusName', width: 150 },
  billNo: { title: '变更单号', dataIndex: 'billNo', width: 150 },
  contentUrl: {
    title: '变更正文',
    dataIndex: 'contentUrl',
    slotName: 'contentUrl',
    width: 250,
  },
  orderNo: { title: '采购订单编号', dataIndex: 'orderNo', width: 150 },
  contractNo: { title: '商务合同编号', dataIndex: 'contractNo', width: 150 },
  mdsVendorName: {
    title: '供应商名称',
    dataIndex: 'mdsVendorName',
    width: 150,
  },
  editUserName: { title: '编制人', dataIndex: 'editUserName', width: 150 },
  editDatetime: { title: '编制日期', dataIndex: 'editDatetime', width: 250 },
  effectiveBegDatetime: {
    title: '有效起始日期',
    dataIndex: 'effectiveBegDatetime',
    width: 250,
  },
  effectiveEndDatetime: {
    title: '有效截止日期',
    dataIndex: 'effectiveEndDatetime',
    width: 250,
  },
  mdsCatagoryLv1Code: {
    title: '一级采购品类编码',
    dataIndex: 'mdsCatagoryLv1Code',
    width: 150,
  },
  mdsCatagoryLv1Name: {
    title: '一级采购品类名称',
    dataIndex: 'mdsCatagoryLv1Name',
    width: 150,
  },
  orderInfo20: {
    title: '是否已发布到协同平台',
    dataIndex: 'orderInfo20',
    width: 250,
  },
  vendorOrdStatus: {
    title: '供应商反馈状态',
    dataIndex: 'vendorOrdStatus',
    width: 150,
  },
  rejectReason: {
    title: '供应商反馈内容',
    dataIndex: 'rejectReason',
    width: 150,
  },
  vendorNote: { title: '供应商备注', dataIndex: 'vendorNote', width: 150 },
  orderInfo24: { title: '协同标记', dataIndex: 'orderInfo24', width: 150 },
  orderInfo25: {
    title: '更改类型',
    dataIndex: 'ordChngTypeName',
    // slotName: 'ordChngType',
    width: 150,
  },
  pmsOrderLNo: { title: '订单明细编号', dataIndex: 'pmsOrderLNo', width: 150 },
  mdsItemCodeNew: {
    title: '物料编码',
    dataIndex: 'mdsItemCodeNew',
    width: 150,
  },
  mdsItemNameNew: {
    title: '物料名称',
    dataIndex: 'mdsItemNameNew',
    width: 150,
  },
  marque: { title: '牌号', dataIndex: 'marque', width: 150 },
  specs: { title: '规格', dataIndex: 'specs', width: 150 },
  techCondition: { title: '技术条件', dataIndex: 'techCondition', width: 150 },
  invOrdQty: { title: '变更前数量', dataIndex: 'invOrdQty', width: 150 },
  invOrdQtyNew: { title: '变更后数量', dataIndex: 'invOrdQtyNew', width: 150 },
  planArrivalDateTime: {
    title: '变更前时间',
    dataIndex: 'planArrivalDateTime',
    width: 150,
  },
  orderInfo35: {
    title: '变更后时间',
    dataIndex: 'planArrivalDateTimeNew',
    width: 150,
  },
  notes: { title: '备注', dataIndex: 'notes', width: 150 },
  changeReason: { title: '变更原因', dataIndex: 'changeReason', width: 150 },
  dlvrtDkAftModlsNew: {
    title: '变更后转码机型',
    dataIndex: 'dlvrtDkAftModlsNew',
    width: 150,
  },
  dlvrtDkAftDrwnoNew: {
    title: '变更后转码图号',
    dataIndex: 'dlvrtDkAftDrwnoNew',
    width: 150,
  },
  orderChangeType: {
    title: '变更类型',
    dataIndex: 'ordChngTypeName',
    // slotName: 'ordChngTypeName',
    width: 150,
  },
  alterationType: {
    title: '变更标记',
    dataIndex: 'ordChngTypeName',
    width: 150,
  },
  figureNumber: {
    title: '图号',
    dataIndex: 'figureNumber',
    width: 150,
  },
  modelNumber: {
    title: '型号',
    dataIndex: 'marque',
    width: 150,
  },
  parentModelNo: {
    title: '父型号',
    dataIndex: 'parentModelNo',
    width: 150,
  },
  proMdsItemIdNew: {
    title: '变更后机型',
    dataIndex: 'proMdsItemIdNew',
    width: 150,
  },
  agreeementCodeNew: {
    title: '变更后技术协议',
    dataIndex: 'agreeementCodeNew',
    width: 150,
  },
  workRouteNew: {
    title: '变更后分工路线',
    dataIndex: 'workRouteNew',
    width: 150,
  },
  pmsRecieveQty: {
    title: '已到货数量',
    dataIndex: 'pmsRecieveQty',
    width: 150,
  },
  pmsInReceiveQty: {
    title: '预到货数量',
    dataIndex: ' pmsInReceiveQty',
    width: 150,
  },
  waitToOrderQty: {
    title: '合同待编订单数',
    dataIndex: 'waitToOrderQty',
    width: 150,
  },
  // 添加详情页面后面表格的字段
  orderNos: {
    title: '订单号',
    dataIndex: 'orderNo',
    width: 150,
  },
  orderInfo52: {
    title: '供应商',
    dataIndex: 'orderInfo52',
    width: 150,
  },
  orderInfo53: {
    title: '订单类型',
    dataIndex: 'orderInfo53',
    width: 150,
  },
  orderInfo54: {
    title: '订单明细记录数',
    dataIndex: 'orderInfo54',
    width: 150,
  },
  signDateTimeNew: {
    title: '签订日期',
    dataIndex: 'signDateTimeNew',
    width: 150,
  },
  orderInfo56: {
    title: '合同号',
    dataIndex: 'orderInfo56',
    width: 150,
  },
  orderInfo57: {
    title: '机型',
    dataIndex: 'orderInfo57',
    width: 150,
  },
  qtyChangeInfluence: {
    title: '数量变更影响分析',
    dataIndex: 'qtyChangeInfluence',
    width: 150,
  },
  purPlanReqDateTime: {
    title: '采购计划需求时间',
    dataIndex: 'purPlanReqDateTime',
    width: 150,
  },
  leadTime: {
    title: '采购周期',
    dataIndex: 'leadTime',
    width: 150,
  },
  checkTime: {
    title: '检验周期',
    dataIndex: 'checkTime',
    width: 150,
  },
  contractReqDateTime: {
    title: '合同交付时间',
    dataIndex: 'contractReqDateTime',
    width: 250,
  },
  theoryChangeDateTime: {
    title: '预计可变最早时间',
    dataIndex: 'theoryChangeDateTime',
    width: 250,
  },
  dateTimeChangeInfluence: {
    title: '时间变更影响分析',
    dataIndex: 'dateTimeChangeInfluence',
    width: 150,
  },
  deliverToPlace: {
    title: '交货地址',
    dataIndex: 'deliverToPlace',
    width: 150,
  },
  deliverToPlaceNew: {
    title: '变更后交货地址',
    dataIndex: 'deliverToPlaceNew',
    width: 150,
  },
  deliverToLinkInfo: {
    title: '指定收货人联系电话',
    dataIndex: 'deliverToLinkInfo',
    width: 250,
  },
  deliverToLinkInfoNew: {
    title: '变更后指定收货人及联系电话',
    dataIndex: 'deliverToLinkInfoNew',
    width: 250,
  },
  pmsOrderListChangeContent: {
    title: '变更内容',
    dataIndex: 'pmsOrderListChangeContent',
    width: 150,
  },
  creator: {
    title: '变更人',
    dataIndex: 'creator',
    width: 150,
  },
  createTime: {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 250,
  },
  dlvrtDkAftModls: {
    title: '变更前转码机型',
    dataIndex: 'dlvrtDkAftModls',
    width: 150,
  },
  operate: {
    title: '操作',
    dataIndex: 'operate',
    slotName: 'operate',
    fixed: 'right',
    width: 260,
  },
};
